<template>
  <div class="advert">广告管理
    <el-button @click="onAdd('ddd')">+</el-button>{{num}}
  </div>
</template>

<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  name: 'AdvertIndex',
  data () {
    return {
      num: [0]
    }
  },
  methods: {
    onAdd <T> (a: Array<T>): void {
      (this as any).num.push(a)
    }
  }
})
</script>

<style lang="scss" scoped>
</style>
